<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>hola soy un encabezado</h:head>
<h:body>
 	<ui:composition template="/templates/masterLayoutIni.xhtml"> 

		<ui:define name="content">
			<br />
			<h1>Pantalla de login</h1>
			<br />

			<h:form>
				<h:panelGrid columns="2">
					<h:panelGrid columns="2">
						<h:outputText value="Usuario" />
						<h:inputText value="#{medicoManagedBean.usuario}" />
						<h:outputText value="Contraseña" />
						<h:inputSecret value="#{medicoManagedBean.contrasenia}" />
						<center>
							<h:panelGrid columns="2">
								<h:commandButton action="#{medicoManagedBean.validateUser}"
									value="Iniciar Sesion"></h:commandButton>
							</h:panelGrid>
						</center>
						<h:outputText value="#{medicoManagedBean.mensajeError}" />
					</h:panelGrid>
				</h:panelGrid>
			</h:form>

		</ui:define>
 	</ui:composition>
</h:body>
</html>